home *** CD-ROM | disk | FTP | other *** search
- In article <PETE.94Mar21204403@luggage.tecc.co.uk> pete@tecc.co.uk (Pete Bentley) writes:
- > According to my version of the Winsock 1.1 spec, when WSAAsyncSelect()
- > is called with FD_WRITE set in the event mask, no message is returned
- > to the application until some send() call actually blocks. Fair enough.
-
- The spec is not actually 100% clear on this point. The spec says ...
-
- "If an event is true when the application initially calls WSAAsyncSelect()
- or when the reenabling function is called, then a message is posted as
- appropriate."
-
- There is no reason why this paragraph should not apply to FD_WRITE events,
- despite the later paragraph which says ...
-
- "An FD_WRITE message is posted when a socket is first connected with
- connect() or accepted with accept(), and then after a send() or sendto()
- fails with WSAEWOULDBLOCK and buffer space becomes available."
-
- If you assume that this applies WITHIN A SINGLE WSAAsyncSelect CALL, then
- the Trumpet and Microsoft behaviour is correct (and FTP and Distinct are
- wrong).
-
- > Some DLLs seem to try and be 'helpful' including the free Microsoft
- > stack and Trumpet (up to alpha #18, at least) and will deliver an
- > FD_WRITE indication if a WSAAsyncSelect() is issued on a socket which
- > includes FD_WRITE *if* the previous mask didn't include FD_WRITE *and*
- > the socket is currently writable. In my opinion, this behavious is
- > more useful, as it will naturally kick-start applications which are
- > totally message driven.
-
- In my opinion, this behaviour is the only correct behaviour. However, the
- authors of the spec. (or possibly the inventors of the English language
- :-) are really to blame, because the spec. is not clear.
-
- [ Description of class libraries & state machine omitted ].
-
- As it happens, I am doing almost exactly the same thing. Who are _you_
- working for :-)
-
- > And to make the class libraries work I either have to call the
- > callbacks directly or post fake FD_WRITE messages. Neither of these
- > approaches are desirable, one risks recursion (the callback is
- > extremely likely to queue more data which may need to be flush()ed)
- > and the other tends to overlflow the task's message queue when run
- > with a 'nice' DLL which is also queuing FD_WRITE indications.
-
- In fact, I have managed to crash Trumpet Winsock doing this (I haven't
- figured out why, yet).
-
- I have "solved" the problem with the following piece of code ...
-
- if(!strncmp(wsaData.szDescription, "Trumpet ", 8))
- GoodWinsock = 1;
-
- and, elsewhere ...
-
- if(!GoodWinsock && (event & FD_WRITE))
- SendMessage(owningWindow, MSG_SELECT, sock(), FD_WRITE);
-
- :-( :-( :-(
-
- --
- Nikki Locke,Trumphurst Ltd.(PC & Unix consultancy) nikki@trmphrst.demon.co.uk
- trmphrst.demon.co.uk is NOT affiliated with ANY other sites at demon.co.uk.
- From news@bigblue.oit.unc.edu Tue Mar 22 19:31:35 1994
- Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
- id AA27222; Tue, 22 Mar 1994 19:31:35 -0500
- Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
- id AA21967; Tue, 22 Mar 1994 19:29:49 -0500
- Received: from GATEWAY by bigblue with netnews
- for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
- To: winsock@sunsite.unc.edu
- Date: Tue, 22 Mar 1994 15:15:59 UNDEFINED
- From: jcolombo@law.uiuc.edu (John Colombo)
- Message-Id: <jcolombo.12.003EF131@law.uiuc.edu>
- Organization: University of Illinois College of Law
- Sender: ses
- References: <GREG_KAISEN.12.000A21B6@QM.YALE.EDU>
- Subject: Re: WFW 3.11 + Winsock
-
- In article <GREG_KAISEN.12.000A21B6@QM.YALE.EDU> GREG_KAISEN@QM.YALE.EDU (Greg Kaisen) writes:
- >As yet I have not been able to get my Winsock Apps. to run in a WFW 3.11
- >environment. I have modified the PROTOCOL.INI file to include a [pktdrv]
- >section, and the appropriate Bindings= statement.
-
- >I load the DIS_PKT9.DOS driver in config.sys
-
- >When I boot everything runs on screen as per normal, and the WINPKT reports
- >that it is using the packet driver at vector 60, but alas no Winsock Apps will
- >run. The WFW stuff does however work.
-
- >-Can anyone help me troubleshoot this? Can someone with a similar setup
- >please send me their CONFIG.SYS, AUTOEXEC.BAT, and PROTOCOL.INI files.
-
- >-thanks, Greg
-
- I am running WFW 3.11 with Trumpet Winsock. My local network server runs on
- Microsoft NT. Here's what I did. In the [network drivers] section of
- system.ini, under Transport=, add the following after whatever you have there
- (remember to add a comma before it as a separator): dis_pkt9.dos. Then change
- the Load RMDrivers line from No to Yes. Make sure a copy of dis_pkt9.dos is
- in your Windows directory, and delete it from your config.sys file. Make sure
- your autoexec.bat file runs winpkt.com AFTER the "Net Start" command. Then
- check your protocol.ini file to make sure you have a [pktdrv] section which
- should look something like this:
-
- [pktdrv]
- DRIVERNAME=PKTDRV$
- BINDINGS=MS$ELNK3 (this is for a 3Com ethernet card, yours may be different)
- INTVEC=0x60 (or whatever you are using for winpkt)
-
- Let me know if this works.
-
- John Colombo
- From news@bigblue.oit.unc.edu Tue Mar 22 19:18:20 1994
- Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
- id AA11889; Tue, 22 Mar 1994 21:01:35 -0500
- Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
- id AA19439; Tue, 22 Mar 1994 20:44:00 -0500
- Received: from GATEWAY by bigblue with netnews
- for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
- To: winsock@sunsite.unc.edu
- Date: Tue, 22 Mar 1994 19:18:20 GMT
- From: sjolshag@benji.Colorado.EDU (SJOLSHAGEN THOMAS LIER)
- Message-Id: <sjolshag.764363900@benji.Colorado.EDU>
- Organization: University of Colorado, Boulder
- Sender: ses
- Subject: QVTNet (Windows) mail problem encountered, HELP!
-
- Hi,
-
- I have just downloaded QVTNet for winsock and got the mail box to work.
- Fortunately enough (yeah, right!) I hven't disengaged Call waiting, and I
- lost my carrier as a call came in while I was logged into my account (I-net).
- After this I keep getting the message "Maildrop box locked. Is another
- session active?" when I try to start up QvtNet's mailbox. I know that I
- haven't loggend into my account for 24 hours, but the message still is there.
-
- I can't find any files (hidden or anything else) that contains any information
- that suggests that I have a lock.
-
- Can anybody please help me ????
-
- Thomas
-
- sjolshag@colorado.edu
-
-